﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TSCC.WinControl
{
    public partial class ucLabel : UserControl
    {
        [Category("SaintWinControl")]
        [Description("取得和設定顯示文字")]
        public string Caption
        {
            set
            {
                label1.Text = value;
                this.Width = label1.Width;
                this.Height = label1.Height;
            }
            get
            {
                return label1.Text;
            }
        }

        public ucLabel()
        {
            InitializeComponent();
        }
    }
}
